import com.dao.UserCartLogMapper;
import com.entity.UserCartLog;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test {

    @Autowired
    private UserCartLogMapper userCartLogMapper;
    @Test
    public void test1(){
        Map<String,Object> map1 = new HashMap<>();
        map1.put("userId",13);
        List<UserCartLog> userCartLogs = userCartLogMapper.selectAll(map1);
        for (UserCartLog m:userCartLogs) {
            System.out.println(m);
        }
    }
}
